# /usr/bin/python3
# -*- coding: utf-8 -*-
# @Time    : 2022/1/6 17:19
# @Author  : lt
# @Email   : lt@163.com
# @File    : run.py.py
# @Software: PyCharm
import unittest
from BeautifulReport import BeautifulReport
import datetime

discover = unittest.defaultTestLoader.discover('./case',pattern='test*.py')
suite = BeautifulReport(discover)
now = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
filename = 'crm_login_'+now

suite.report(description='自动化报告',report_dir='./report',filename=filename,)

